Crazy: image.o main.o engine.o map.o
	c++ image.o main.o engine.o map.o -o Crazy -lSDL -lSDL_image
	./Crazy

image.o: image.cpp image.h
	c++ -c image.cpp -lSDL -lSDL_image

main.o: main.cpp
	c++ -c main.cpp -lSDL -lSDL_image

engine.o: engine.cpp engine.h
	c++ -c engine.cpp -lSDL
	
map.o: map.cpp map.h
	c++ -c map.cpp


clean:
	@echo Removing object files
	@echo Files : *.o
	rm *.o


run:
	@echo Starting up Crazy
	./Crazy
